package com.gcsoftware.web.utils;

import java.util.*;

/**
 * 字符串工具类
 * @author czp
 * date 2018-03-31
 */
public class StringUtils {
    /**
     * 将字符串拆分
     * @param string 字符串
     * @param splitTag 拆分标记
     * @return Set
     */
    public static List<String> StringSplit(String string, String splitTag) {
        if (string == null || "".equals(string.trim())) return null;
        String[] strBuf = string.split(splitTag);
        List<String> rStrBuf = new ArrayList<String>();
        for (String str : strBuf) {
            rStrBuf.add(str.trim());
        }
        return rStrBuf;
    }
}
